<?xml version="1.0" encoding="UTF-8"?>
<definitions id="taskAssigneeExample"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
             targetNamespace="Examples">

  <process id="getBeanProperty" isExecutable="true">

    <startEvent id="StartEvent"/>

    <sequenceFlow sourceRef="StartEvent" targetRef="GatewayFork" />
    
    <exclusiveGateway id="GatewayFork"/>

    <sequenceFlow sourceRef="GatewayFork" targetRef="ServiceTask">
      <conditionExpression xsi:type="tFormalExpression">#{messageBean.getMessage() == 'Greetings from Berlin'}</conditionExpression>
    </sequenceFlow>

    <serviceTask id="ServiceTask" camunda:expression="#{messageBean.setMessage(null)}"/>
    
    <sequenceFlow sourceRef="ServiceTask" targetRef="GatewayJoin" />
    
    <sequenceFlow sourceRef="GatewayFork" targetRef="GatewayJoin">
      <conditionExpression xsi:type="tFormalExpression">#{messageBean.getMessage() != 'Greetings from Berlin'}</conditionExpression>
    </sequenceFlow>
    
    <exclusiveGateway id="GatewayJoin"/>
    
    <sequenceFlow sourceRef="GatewayJoin" targetRef="EndEvent" />

    <endEvent id="EndEvent"/>

  </process>
</definitions>